package com.lagouedu.consistentsession.dao;

import com.lagouedu.consistentsession.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User, Integer> {


    @Query(value = "select id,user_name,password from user where user_name = ?1 and password =?2", nativeQuery = true)
    public User checkUser(String userName, String password);
}
